import Vue from 'vue'
import App from './App.vue'
import VueLazyload from 'vue-lazyload'

//运行mock
import './mock/serve'

import router from './router/index'

//使用按需加载方式
import './plugins/element'
/* import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' */
import less from 'less'
import store from './vuex/store'

import loadimage from '../static/images/loading.gif'
// Vue.use(Button)
// Vue.use(Select)
Vue.use(VueLazyload, {
  loading: loadimage
})

/* Vue.use(ElementUI) */
Vue.use(less)
// eslint-disable-next-line no-new
new Vue({
  el: '#app',
  render: h => h(App),
  router,
  store
})
